package com.yingxin.yxerp.module.dingtalk.entity.enums;

/**
 * 籍贯
 */

public enum WeComNativePlaceEnums {

    AH(1,"安徽省"),
    Mo(2,"澳门特别行政区"),
    BJ(3,"北京市"),
    CQ(4,"重庆市"),
    FJ(5,"福建省"),
    GS(6,"甘肃省"),
    GD(7,"广东省"),
    GX(8,"广西壮族自治区"),
    GZ(9,"贵州省"),
    HI(10,"海南省"),
    HBS(11,"河北省"),
    HL(12,"黑龙江省"),
    HA(13,"河南省"),
    HB(14,"湖北省"),
    HN(15,"湖南省"),
    JS(16,"江苏省"),
    JX(17,"江西省"),
    JL(18,"吉林省"),
    LN(19,"辽宁省"),
    NM(20,"内蒙古自治区"),
    NX(21,"宁夏回族自治区"),
    QH(22,"青海省"),
    SD(23,"山东省"),
    SH(24,"上海省"),
    SX(25,"山西省"),
    SN(26,"陕西省"),
    SC(27,"四川省"),
    TJ(28,"天津省"),
    Tw(29,"台湾省"),
    HK(30,"香港特别行政区"),
    XJ(31,"新疆维吾尔自治区"),
    XZ(32,"西藏自治区"),
    YN(33,"云南省"),
    ZJ(34,"浙江省"),
    ;

    private Integer nativePlace;

    private String nativePlaceName;

    WeComNativePlaceEnums(Integer nativePlace, String nativePlaceName) {
        this.nativePlace = nativePlace;
        this.nativePlaceName = nativePlaceName;
    }

    public Integer getNativePlace() {
        return nativePlace;
    }

    public void setNativePlace(Integer nativePlace) {
        this.nativePlace = nativePlace;
    }

    public String getNativePlaceName() {
        return nativePlaceName;
    }

    public void setNativePlaceName(String nativePlaceName) {
        this.nativePlaceName = nativePlaceName;
    }

    public static WeComNativePlaceEnums getEnum(Integer nativePlace) {
        if( nativePlace == null ){
            return null;
        }
        for (WeComNativePlaceEnums i : WeComNativePlaceEnums.values()) {
            if ( i.getNativePlace() == nativePlace ) {
                return i;
            }
        }
        return null;
    }

    // [
    // {"label":"安徽省","value":"1"},{"label":"澳门特别行政区","value":"2"},{"label":"北京市","value":"3"},
    // {"label":"重庆市","value":"4"},{"label":"福建省","value":"5"},{"label":"甘肃省","value":"6"},
    // {"label":"广东省","value":"7"},{"label":"广西壮族自治区","value":"8"},{"label":"贵州省","value":"9"},
    // {"label":"海南省","value":"10"},{"label":"河北省","value":"11"},{"label":"黑龙江省","value":"12"},
    // {"label":"河南省","value":"13"},{"label":"湖北省","value":"14"},{"label":"湖南省","value":"15"},
    // {"label":"江苏省","value":"16"},{"label":"江西省","value":"17"},{"label":"吉林省","value":"18"},
    // {"label":"辽宁省","value":"19"},{"label":"内蒙古自治区","value":"20"},{"label":"宁夏回族自治区","value":"21"},
    // {"label":"青海省","value":"22"},{"label":"山东省","value":"23"},{"label":"上海省","value":"24"},
    // {"label":"山西省","value":"25"},{"label":"陕西省","value":"26"},{"label":"四川省","value":"27"},
    // {"label":"天津省","value":"28"},{"label":"台湾省","value":"29"},{"label":"香港特别行政区","value":"30"},
    // {"label":"新疆维吾尔自治区","value":"31"},{"label":"西藏自治区","value":"32"},{"label":"云南省","value":"33"},
    // {"label":"浙江省","value":"34"},
    // ]

}
